<?php

use think\facade\Route;


Route::post('upload', 'Upload/upload'); // 上传文件（base64）
Route::post('uploadFile', 'Upload/uploadFile'); // 上传文件（file）
Route::post('batchUploadFile', 'Upload/batchUploadFile'); // 批量上传文件（file）
Route::get('getOssDirectUploadParams', 'Upload/getOssDirectUploadParams'); // 获取直传参数
Route::post('saveDirectUploadInfo', 'Upload/saveDirectUploadInfo'); // 保存直传信息
Route::post('batchSaveDirectUploadInfo', 'Upload/batchSaveDirectUploadInfo'); // 批量保存直传信息






Route::any('uploadImgByBase64', 'customer/Test.AliyunOss/uploadImgByBase64');
Route::any('base64ImageGenerateThumb', 'customer/Test.AliyunOss/base64ImageGenerateThumb');
Route::any('generateTextWatermark', 'customer/Test.AliyunOss/generateTextWatermark');



Route::get('test/bucket/:id', 'customer/Test.AliyunOss/show');
Route::get('testBucket', 'customer/Test.AliyunOss/bucketsIndex');


Route::group('dingTalk', function () {
    Route::post('/sendActionCardJobNotificationMessage', 'SendActionCardJobNotificationMessage');
    Route::post('/sendTextJobNotificationMessage', 'SendTextJobNotificationMessage');
    Route::post('/sendTextGroupChatMessage', 'SendTextGroupChatMessage');
    Route::post('/sendActionCardGroupChatMessage', 'SendActionCardGroupChatMessage');
    Route::get('/getAllOperatorUserId', 'getAllOperatorUserId');
})->prefix('DingTalk/');
